<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'ShowOneGoods.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript">
	var msg ='<%=session.getAttribute("tipMessage")%>';
	if (msg != ""&&msg!=null) {
	<%session.setAttribute("tipMessage","");%>
		alert(msg);
		
	}
</script>
</head>

<body>
	<s:form action="modifyoneuser" method="post" name="myinfoform">
		<table align="center">
			<tr>
				<br>
				<br>
				<div align=center>
					<FONT SIZE="6" COLOR="颜色#000000"></FONT>
				</div>
				<br>
				<br>
				</td>
			</tr>
			<tr>
				<td width="10%">&nbsp;</td>
				<td>
					<table>
						<tr>
							<td>用户名</td>
							<td><s:textfield name="user.username" readonly="true" /></td>
						<tr>
						<tr>
							<td>手机号</td>
							<td><s:textfield name="user.phone" /></td>
						<tr>
						<tr>
							<td>姓名</td>
							<td><s:textfield name="user.name" /></td>
						</tr>
						<tr>
							<td>身份</td>
							<td>
							
							<select name="user.role" > 
							
							<s:if test="user.role=='admin'">
								<option value="admin" selected="selected" >管理员</option> 
								<option value="put">事务提出方</option> 
								<option value="solve">事务解决方</option> 
							</s:if>
							<s:if test=" user.role=='solve'">
								<option value="admin"  >管理员</option> 
								<option value="put">事务提出方</option> 
								<option value="solve" selected="selected">事务解决方</option> 
							</s:if>
							<s:if test="user.role=='put'">
								<option value="admin"  >管理员</option> 
								<option value="put" selected="selected">事务提出方</option> 
								<option value="solve">事务解决方</option> 
							</s:if>
							</select>
							
							</td>
						</tr>


						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;&nbsp;&nbsp;&nbsp;<input name="Submit6"
								type="submit" value="修改" /></td>
						</tr>

					</table>
				</td>
				<td width="30%">&nbsp;</td>
		</table>
	</s:form>
</body>
</html>
